//
//  ZCAccountTableVC.m
//  SSMusic
//
//  Created by 张灿 on 16/4/18.
//  Copyright © 2016年 张灿. All rights reserved.
//

#import "ZCAccountTableVC.h"
#import "ZCSettingTVC.h"


@interface ZCAccountTableVC ()

@end

@implementation ZCAccountTableVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setGroup0];
    [self setGroup1];
    [self setGroup2];
    [self setGroup3];
    
}


#pragma mark - Table view data source

- (void)setGroup0
{
    accountItem *item0 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_mail"] andTitle:@"我的消息"];
    NSArray *arr = @[item0];
    GroupItem *groupItem = [GroupItem groupItemWithRowArr:arr];
    
    [self.groupArr addObject:groupItem];
    
}

- (void)setGroup1
{
    accountItem *item0 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_member"] andTitle:@"付费音乐包"];
    
    accountItem *item1 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_store"] andTitle:@"积分商城"];
    
    accountItem *item2 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_combo"] andTitle:@"在线听歌免流量"];

    NSArray *arr = @[item0,item1,item2];
    GroupItem *groupItem = [GroupItem groupItemWithRowArr:arr];
    
    [self.groupArr addObject:groupItem];
}

- (void)setGroup2
{
    ZCArrowItem *item0 = [ZCArrowItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_set"] andTitle:@"设置"];
    item0.desClass = [ZCSettingTVC class];
    
    
    accountItem *item1 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_skin"] andTitle:@"主题换肤"];
    
    accountItem *item2 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_night"] andTitle:@"夜间模式"];
    
    accountItem *item3 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_time"] andTitle:@"定时关闭"];
    
    accountItem *item4 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_alamclock"] andTitle:@"音乐闹钟"];
    
    NSArray *arr = @[item0,item1,item2,item3,item4];
    GroupItem *groupItem = [GroupItem groupItemWithRowArr:arr];
    
    [self.groupArr addObject:groupItem];
}

- (void)setGroup3
{
    accountItem *item0 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_share"] andTitle:@"分享网易云音乐"];
    
    accountItem *item1 = [accountItem itemWithImage:[UIImage imageNamed:@"cm2_set_icn_about"] andTitle:@"关于"];
    
    NSArray *arr = @[item0,item1];
    GroupItem *groupItem = [GroupItem groupItemWithRowArr:arr];
    
    [self.groupArr addObject:groupItem];
}


@end
